package com.heima.apis.admin;
import com.heima.model.admin.dtos.AdSensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;


//敏感词 controller 接口
@Api(value = "敏感词管理", tags = "sensitive", description = "敏感词管理API")
public interface AdSensitiveControllerApi {

    /**
     * 根据名称分页查询频道列表
     * @param dto
     * @return
     */
    @ApiOperation("敏感词分页列表查询")
    public ResponseResult findByNameAndPage(AdSensitiveDto dto);


    /**
     * 新增
     * @param sensitive
     * @return
     */
    public ResponseResult save(AdSensitive sensitive);

    /**
     * 修改
     * @param sensitive
     * @return
     */
    public ResponseResult update(AdSensitive sensitive);

    /**
     * 删除
     * @param id
     * @return
     */
    public ResponseResult deleteById(Integer id);
}
